<!-- Twitter badge -->
<div id="twitter_div">
<!-- h2 class="sidebar-title">newarLig'te</h2 -->
<ul id="twitter_update_list"></ul>
<a href="http://twitter.com/newarlig" id="twitter-link" style="display:none;text-align:right;">follow me on Twitter</a>
</div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/newarlig.json?callback=twitterCallback2&amp;count=3"></script>
<!--  Twitter end -->
<hr/>
<p/>
<div class="aligncenter">
	{foreach from=$users key=myId item=i name=userT}
		{if $smarty.foreach.userT.first}
			<table class="liste">
				<caption>Puan Durumu</caption>
				<tr>
					<th>Sira</th><th>Tahminci</th><th>Oyn</th><th>Puan</th>
				</tr>
			<tr class="aligncenter">
				<td class="odul">{$smarty.foreach.userT.iteration}</td>
				<td class="odul">
					{if $my_session->logged_in}
						<a href="games.php?action=userPredictions&userName={$i->username}">
					{/if}
					{$i->username}
					{if $my_session->logged_in}
						</a>
					{/if}					
				</td>
				<td class="odul">{$i->toplamTahmin}</td>	
				<td class="odul">{$i->pts}</td>		
			</tr>
		{else}
			<tr class="aligncenter">
				<td>{$smarty.foreach.userT.iteration}</td>
				<td>
					{if $my_session->logged_in}
						<a href="games.php?action=userPredictions&userName={$i->username}">
					{/if}				
					{$i->username}
					{if $my_session->logged_in}
						</a>
					{/if}							
				</td>
				<td>{$i->toplamTahmin}</td>	
				<td>{$i->pts}</td>		
			</tr>
		{/if}
		{if $smarty.foreach.userT.last}
			</table>
		{/if}
	{/foreach}
</div>